/**
 *  Customer 业务操作
 */
var customerHandler=function(){
	var obj = {};
	
	obj.deleteCustomer = function(cid, callback){
		alert(cid);
		AjaxOpt.ajax("DELETE", "deleteCustomer?id=" + cid, null, null, this, callback);
	}
	
	obj.addCustomer = function(customer, callback){
		AjaxOpt.ajax("POST", "addCustomer", customer, { "Content-Type": "application/json" }, this, callback);
	}
	
	
	obj.updateCustomer = function(customer,callback){
		////更新Customer

		AjaxOpt.ajax("POST", "updateCustomer", customer, { "Content-Type": "application/json" }, this, callback);
	}
	
	obj.findAllCustomers = function(callback){
		AjaxOpt.ajax("GET", "findAllCustomers", null, null, this, callback);
	}
	return obj;
}();